import request from '@/utils/request'

export default{
    toGetVideoInfo(id){
        return request({
            url:'/videoPromotion/video/getVideoInfo/'+id,
            method:'get'
        })
    },
    toSetVideoPromotion(id){
        return request({
            url:`/videoPromotion/video/setVideoPromotion/${id}`,
            method:'get'
        })
    },
    toCancelVideoPromotion(id){
        return request({
            url:`/videoPromotion/video/cancelVideoPromotion/${id}`,
            method:'get'
        })
    },
    toJudgeVideoPromotion(id){
        return request({
            url:`/videoPromotion/video/judgeVideoPromotion/${id}`,
            method:'get'
        })
    },
    //获取所有已推广的视频
    toGetAlreadyVideoPromotion(id){
        return request({
            url:`/videoPromotion/video/getAlreadyPromotion`,
            method:'get'
        })
    },
}
